# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
pkgname=py3-httpretty
pkgver=1.1.4
pkgrel=2
pkgdesc="HTTP client mocking tool for Python"
url="https://github.com/gabrielfalcao/HTTPretty"
arch="noarch"
license="MIT"
depends="python3"
makedepends="python3-dev py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/h/httpretty/httpretty-$pkgver.tar.gz"
replaces="py-httpretty"
provides="py-httpretty=$pkgver-r$pkgrel"
builddir="$srcdir"/httpretty-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	# Fix permissions on .EGG-INFO
	chmod 644 "$pkgdir"/usr/lib/python3*/site-packages/*.egg-info/*
}

sha512sums="
4daceea4f30ce181e871167d304bd7af9d504364f55d42f8025770f2efe7e833d018aed681c8733d653d4de90db3433e999c56bccd4675f81e66d1cc4023e418  httpretty-1.1.4.tar.gz
"
